package com.hua.api.modules.finance.service;

import com.alibaba.fastjson.JSONObject;
import com.alipay.api.AlipayApiException;

import java.util.Map;

public interface AliPayService {

    /**
     * 支付宝回调通知
     * */
    String alipayNotify(Map<String,String> map);

    /**
     * 支付状态查询
     * */
    String tradeQuery(String outTradeNo);

    /**
     * web支付统一下单
     * */
    JSONObject alipayPreCreate(String outTradeNo) throws AlipayApiException;

    /**
     * app统一下单
     * */
    JSONObject alipayPreCreateApp(String outTradeNo);

}
